import Main from '@/view/main'
import parentView from '@/components/parent-view'

/**
 * iview-admin中meta除了原生参数外可配置的参数:
 * meta: {
 *  hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项
 *  notCache: (false) 设为true后页面不会缓存
 *  access: (null) 可访问该页面的权限数组，当前路由设置的权限会影响子路由
 *  icon: (-) 该页面在左侧菜单、面包屑和标签导航处显示的图标，如果是自定义图标，需要在图标名称前加下划线'_'
 * }
 */

export default [{
		path: '/login',
		name: 'login',
		meta: {
			title: 'Login - 登录',
			hideInMenu: true
		},
		component: () =>
			import('@/view/login/login.vue')
	}, {
		path: '/',
		component: Main,
		redirect: '/home',
		name: '',
		meta: {
			hideInMenu: true,
			notCache: true,
		},
		children: [{
			path: '/home',
			name: 'home',
			meta: {
				hideInMenu: true,
				title: '首页',
				notCache: true
			},
			component: () =>
				import('@/view/Estate/main/index')
		}]
	}, {
		path: '/accountManagement',
		meta: {
			icon: 'md-people',
			title: '账户管理'
		},
		name: 'accountManagement',
		component: Main,
		redirect: '/accountManagement/operationManagementAccount',
		children: [{
			path: 'operationManagementAccount',
			meta: {
				title: '运营管理账号'
			},
			name: 'operationManagementAccount',
			component: () =>
				import('@/view/Estate/accountManagement/operationManagementAccount')
		}, {

			path: 'authority',
			meta: {
				title: '角色管理'
			},
			name: 'authority',
			component: () =>
				import('@/view/Estate/accountManagement/authority')

		}, {
			path: 'memberList',
			meta: {
				title: '会员列表'
			},
			name: 'memberList',
			component: () =>
				import('@/view/Estate/accountManagement/memberList')
		}]
	},
	{
		path: '/financialManagement',
		meta: {
			icon: 'md-trending-up',
			title: '财务管理'
		},
		name: 'financialManagement',
		component: Main,
		redirect: '/financialManagement/financeStatistics',
		children: [{
				path: 'financeStatistics',
				meta: {
					title: '财务统计'
				},
				name: 'financeStatistics',
				component: () =>
					import('@/view/Estate/financialManagement/financeStatistics')
			},
			{
				path: 'withdrawalReview',
				meta: {
					title: '提现审核'
				},
				name: 'withdrawalReview',
				component: () =>
					import('@/view/Estate/financialManagement/withdrawalReview')
			},
			{
				path: '/financialManagement/moneyList',
				meta: {
					title: '充值列表'
				},
				name: 'moneyList',
				component: () =>
					import('@/view/Estate/financialManagement/moneyList')
			},
			{
				path: '/financialManagement/transferManagement',
				meta: {
					title: '转入列表'
				},
				name: 'transferManagement',
				component: () =>
					import('@/view/Estate/financialManagement/transferManagement')
			},
			// {
			// 	path: '/financialManagement/receivedManagement',
			// 	meta: {
			// 		title: '获赠列表'
			// 	},
			// 	name: 'receivedManagement',
			// 	component: () =>
			// 		import('@/view/Estate/financialManagement/receivedManagement')
			// },
			{
				path: '/financialManagement/Deduction',
				meta: {
					title: '扣除列表'
				},
				name: 'Deduction',
				component: () =>
					import('@/view/Estate/financialManagement/Deduction')
			},
			// {
			// 	path: '/financialManagement/BatchTransfer',
			// 	meta: {
			// 		title: '批量转出'
			// 	},
			// 	name: 'BatchTransfer',
			// 	component: () =>
			// 		import('@/view/Estate/financialManagement/BatchTransfer')
			// },
		]
	},
	{
		path: '/queryStats',
		meta: {
			icon: 'ios-create',
			title: '统计查询'
		},
		name: 'queryStats',
		component: Main,
		redirect: '/queryStats/giveCandy',
		children: [
			// {
			// 	path: 'Deposit',
			// 	meta: {
			// 		title: '存币理财'
			// 	},
			// 	name: 'Deposit',
			// 	component: () =>
			// 		import('@/view/Estate/queryStats/Deposit')
			// },
			// {
			// 	path: 'RecommendReward',
			// 	meta: {
			// 		title: '推荐奖励'
			// 	},
			// 	name: 'RecommendReward',
			// 	component: () =>
			// 		import('@/view/Estate/queryStats/RecommendReward')
			// },
			// {
			// 	path: 'NodeReward',
			// 	meta: {
			// 		title: '节点奖励'
			// 	},
			// 	name: 'NodeReward',
			// 	component: () =>
			// 		import('@/view/Estate/queryStats/NodeReward')
			// },
			{
				path: 'release',
				meta: {

					title: '释放列表'
				},
				name: 'Release',
				component: () =>
					import('@/view/Estate/queryStats/release')
			},
			{
				path: 'participationPlateau',
				meta: {
					title: '平台分红'
				},
				name: 'ParticipationPlateau',
				component: () =>
					import('@/view/Estate/queryStats/participationPlateau')
			},
		]
	},
	// {
	// 	path: '/treasure',
	// 	meta: {
	// 		icon: 'ios-create',
	// 		title: '一币抽奖'
	// 	},
	// 	name: 'treasure',
	// 	component: Main,
	// 	redirect: '/treasure/releaseManagement',
	// 	children: [{
	// 			path: 'releaseManagement',
	// 			meta: {
	// 				// icon: 'ios-share',
	// 				title: '发布管理'
	// 			},
	// 			name: 'releaseManagement',
	// 			component: () =>
	// 				import('@/view/ALaDing/treasure/releaseManagement')
	// 		},
	// 		{
	// 			path: 'productManagement',
	// 			meta: {
	// 				// icon: 'md-ribbon',
	// 				title: '产品管理'
	// 			},
	// 			name: 'productManagement',
	// 			component: () =>
	// 				import('@/view/ALaDing/treasure/productManagement')
	// 		},
	// 		{
	// 			path: 'orderManagement',
	// 			meta: {
	// 				// icon: 'ios-ribbon',
	// 				title: '订单管理'
	// 			},
	// 			name: 'orderManagement',
	// 			component: () =>
	// 				import('@/view/ALaDing/treasure/orderManagement')
	// 		},
	// 		// {
	// 		// 	path: 'joinManagement',
	// 		// 	meta: {
	// 		// 		// icon: 'ios-ribbon',
	// 		// 		title: '参与管理'
	// 		// 	},
	// 		// 	name: 'joinManagement',
	// 		// 	component: () =>
	// 		// 		import('@/view/ALaDing/treasure/joinManagement')
	// 		// },
	// 	]
	// },

	{
		path: '/house',
		meta: {
			icon: 'ios-create',
			title: '众筹房产'
		},
		name: 'house',
		component: Main,
		redirect: '/house/management',
		children: [{
				path: 'management',
				meta: {
					// icon: 'ios-share',
					title: '项目管理'
				},
				name: 'management',
				component: () =>
					import('@/view/Estate/house/management')
			},
			{
				path: 'progress',
				meta: {
					// icon: 'md-ribbon',
					title: '发布进展'
				},
				name: 'progress',
				component: () =>
					import('@/view/Estate/house/progress')
			},
			{
				path: 'balance',
				meta: {
					// icon: 'ios-ribbon',
					title: '结算详情'
				},
				name: 'balance',
				component: () =>
					import('@/view/Estate/house/balance')
			},
			{
				path: 'participation',
				meta: {
					// icon: 'ios-ribbon',
					title: '分红详情'
				},
				name: 'participation',
				component: () =>
					import('@/view/Estate/house/participation')
			},
			{
				path: 'explain',
				meta: {
					// icon: 'ios-ribbon',
					title: '发布说明'
				},
				name: 'explain',
				component: () =>
					import('@/view/Estate/house/explain')
			},
		]
	},
	{
		path: '/parameterConfiguration',
		meta: {
			icon: 'ios-settings',
			title: '参数配置'
		},
		name: 'parameterConfiguration',
		component: Main,
		redirect: '/parameterConfiguration/feeConfiguration',
		children: [{
				path: 'feeConfiguration',
				meta: {
					title: '全局配置'
				},
				name: 'feeConfiguration',
				component: () =>
					import('@/view/Estate/parameterConfiguration/feeConfiguration')
			},
			{
				path: 'htmlConfiguration',
				meta: {
					title: '网站配置'
				},
				name: 'htmlConfiguration',
				component: () =>
					import('@/view/Estate/parameterConfiguration/htmlConfiguration')
			},
			{
				path: 'releaseconfiguration',
				meta: {
					title: '释放配置'
				},
				name: 'releaseconfiguration',
				component: () =>
					import('@/view/Estate/parameterConfiguration/releaseconfiguration')
			},

		]
	},
	{
		path: '/operationalPromotion',
		meta: {
			icon: 'ios-keypad',
			title: '运营推广'
		},
		name: 'operationalPromotion',
		component: Main,
		redirect: '/operationalPromotion/bannerManagement',
		children: [{
				path: 'bulletinManagement',
				meta: {
					icon: 'ios-pricetag',
					title: '公告管理'
				},
				name: 'bulletinManagement',
				component: () =>
					import('@/view/Estate/operationalPromotion/bulletinManagement')
			},
			// {
			// 	path: 'newsManagement',
			// 	meta: {
			// 		icon: 'ios-leaf',
			// 		title: 'banner图管理'
			// 	},
			// 	name: 'newsManagement',
			// 	component: () =>    
			// 		import('@/view/Estate/operationalPromotion/newsManagement')
			// }
		]
	},
	{
		path: '',
		meta: {
			icon: '',
			title: '操作日志'
		},
		name: '',
		component: Main,
		redirect: '/log',
		children: [{
			path: 'log',
			meta: {
				icon: 'md-reorder',
				title: '操作日志'
			},
			name: '操作日志',
			component: () =>
				import('@/view/Estate/log/log')
		}]
	}
	// {
	// 	path: '/collectionManagement',
	// 	meta: {
	// 		icon: 'ios-settings',
	// 		title: '归集管理'
	// 	},
	// 	name: 'collectionManagement',
	// 	component: Main,
	// 	redirect: '/collectionManagement/collection',
	// 	children: [{
	// 		path: 'collection',
	// 		meta: {
	// 			icon: 'ios-folder',
	// 			title: '手动归集'
	// 		},
	// 		name: 'collection',
	// 		component: () =>
	// 			import('@/view/Estate/collectionManagement/collection')
	// 	}]
	// },
]